<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<title>APP</title>
		<link rel="stylesheet" type="text/css" href="../css/aui.css" />
		<link rel="stylesheet" type="text/css" href="../css/aui-eg.css" />
		<style>
			.flex-container {
				display: -webkit-box;
				display: -webkit-flex;
				display: flex;
				-webkit-flex-flow: row wrap;
				justify-content: space-between;
				text-align: center;
			}
			.aui-content-padded {
				padding: 10px;
			}
			.aui-content-padded a {
				margin: 3px;
				width: 50px;
				height: 50px;
				display: inline-block;
				text-align: center;
				background-color: #fff;
				border: 1px solid #ddd;
				border-radius: 25px;
				background-clip: padding-box;
			}
			.aui-content-padded a .aui-m-icon {
				margin-top: 12px;
			}
			.aui-m-spinner,
			.aui-m-spinner-white {
				margin-top: 12px
			}
			.active .aui-m-spinner-indicator {
				background: #007AFF;
			}
			.aui-content a {
				color: #8F8F94;
			}
			.aui-content span.active {
				color: #007aff;
			}
		</style>
	</head>
	<body>
		<div class="aui-content">
			<div class="aui-content-padded">
				<p style="text-align: center;">点击图标查看高亮样式</p>
				<div class="flex-container">
					<a id="icon-icon-contact"><span class="aui-m-icon aui-m-icon-contact"></span></a>
					<a id="icon-person"><span class="aui-m-icon aui-m-icon-person"></span></a>
					<a id="icon-personadd"><span class="aui-m-icon aui-m-icon-personadd"></span></a>
					<a id="icon-phone"><span class="aui-m-icon aui-m-icon-phone"></span></a>
					<a id="icon-email"><span class="aui-m-icon aui-m-icon-email"></span></a>
					<a id="icon-chatbubble"><span class="aui-m-icon aui-m-icon-chatbubble"></span></a>
					<a id="icon-chatboxes"><span class="aui-m-icon aui-m-icon-chatboxes"></span></a>
					<a><span class="aui-m-icon aui-m-icon-weibo"></span></a>
					<a><span class="aui-m-icon aui-m-icon-weixin"></span></a>
					<a><span class="aui-m-icon aui-m-icon-pengyouquan"></span></a>
					<a><span class="aui-m-icon aui-m-icon-chat"></span></a>
					<a><span class="aui-m-icon aui-m-icon-qq"></span></a>

					<a><span class="aui-m-icon aui-m-icon-videocam"></span></a>
					<a><span class="aui-m-icon aui-m-icon-camera"></span></a>
					<a><span class="aui-m-icon aui-m-icon-image"></span></a>
					<a id="icon-mic"><span class="aui-m-icon aui-m-icon-mic"></span></a>
					<a><span class="aui-m-icon aui-m-icon-micoff"></span></a>
					<a id="icon-location"><span class="aui-m-icon aui-m-icon-location"></span></a>
					<a><span class="aui-m-icon aui-m-icon-map"></span></a>
					<a><span class="aui-m-icon aui-m-icon-compose"></span></a>
					<a><span class="aui-m-icon aui-m-icon-trash"></span></a>
					<a><span class="aui-m-icon aui-m-icon-upload"></span></a>
					<a><span class="aui-m-icon aui-m-icon-download"></span></a>
					<a id="icon-close"><span class="aui-m-icon aui-m-icon-close"></span></a>
					<a><span class="aui-m-icon aui-m-icon-closeempty"></span></a>
					<a><span class="aui-m-icon aui-m-icon-redo"></span></a>
					<a><span class="aui-m-icon aui-m-icon-undo"></span></a>
					<a id="icon-refresh"><span class="aui-m-icon aui-m-icon-refresh"></span></a>
					<a><span class="aui-m-icon aui-m-icon-refreshempty"></span></a>
					<a><span class="aui-m-icon aui-m-icon-reload"></span></a>
					<a><span class="aui-m-icon aui-m-icon-loop"></span></a>
					<!--<a><span class="aui-m-icon aui-m-icon-loopstrong"></span></a>-->
					<a>
						<span class="aui-m-spinner"></span>
					</a>
					<a id="icon-star"><span class="aui-m-icon aui-m-icon-star"></span></a>
					<a><span class="aui-m-icon aui-m-icon-starhalf"></span></a>
					<a id="icon-plus"><span class="aui-m-icon aui-m-icon-plus"></span></a>
					<a><span class="aui-m-icon aui-m-icon-plusempty"></span></a>
					<a id="icon-minus"><span class="aui-m-icon aui-m-icon-minus"></span></a>
					<a><span class="aui-m-icon aui-m-icon-checkmarkempty"></span></a>
					<a><span class="aui-m-icon aui-m-icon-search"></span></a>
					<!--<a><span class="aui-m-icon aui-m-icon-searchstrong"></span></a>-->
					<!--<a><span class="aui-m-icon aui-m-icon-share"></span></a>-->

					<a id="icon-home"><span class="aui-m-icon aui-m-icon-home"></span></a>
					<a><span class="aui-m-icon aui-m-icon-navigate"></span></a>
					<a id="icon-gear"><span class="aui-m-icon aui-m-icon-gear"></span></a>
					<a><span class="aui-m-icon aui-m-icon-settings"></span></a>
					<!--<a><span class="aui-m-icon aui-m-icon-settingsstrong"></span></a>-->
					<a><span class="aui-m-icon aui-m-icon-list"></span></a>
					<a><span class="aui-m-icon aui-m-icon-bars"></span></a>
					<a><span class="aui-m-icon aui-m-icon-paperplane"></span></a>
					<a id="icon-info"><span class="aui-m-icon aui-m-icon-info"></span></a>
					<a id="icon-help"><span class="aui-m-icon aui-m-icon-help"></span></a>
					<a><span class="aui-m-icon aui-m-icon-locked"></span></a>
					<a id="icon-more"><span class="aui-m-icon aui-m-icon-more"></span></a>
					<a><span class="aui-m-icon aui-m-icon-flag"></span></a>
					<a><span class="aui-m-icon aui-m-icon-paperclip"></span></a>
					<a><span class="aui-m-icon aui-m-icon-eye"></span></a>



					<a><span class="aui-m-icon aui-m-icon-back"></span></a>
					<a><span class="aui-m-icon aui-m-icon-forward"></span></a>

					<a><span class="aui-m-icon aui-m-icon-arrowup"></span></a>
					<a><span class="aui-m-icon aui-m-icon-arrowdown"></span></a>
					<a><span class="aui-m-icon aui-m-icon-arrowleft"></span></a>
					<a><span class="aui-m-icon aui-m-icon-arrowright"></span></a>

					<a><span class="aui-m-icon aui-m-icon-arrowthinup"></span></a>
					<a><span class="aui-m-icon aui-m-icon-arrowthindown"></span></a>
					<a><span class="aui-m-icon aui-m-icon-arrowthinleft"></span></a>
					<a><span class="aui-m-icon aui-m-icon-arrowthinright"></span></a>

					<a><span class="aui-m-icon aui-m-icon-pulldown"></span></a>
				</div>
			</div>
		</div>
	</body>
	<script type="text/javascript" src="../script/api.js" ></script>
	<script type="text/javascript" src="../script/aui-eg.js" ></script>
	<script type="text/javascript">
	    window.addEventListener('click',function(e){
	        var obj = event.srcElement ? event.srcElement : event.target;
	        if(obj.tagName == 'SPAN'){
	            if($api.hasCls(obj, "active")){
                    $api.removeCls(obj, "active");
                }else{
    	            var collapses = $api.domAll(".aui-m-icon");
    	            var collapse;
    	            for(var x=0;x<collapses.length;x++){
        	            collapse = collapses[x];
    	                if($api.hasCls(collapse, "active")){
    	                    $api.removeCls(collapse, "active");
    	                }
    	            }
    	            $api.addCls(obj, "active");
                }
	        }
	    });
		apiready = function() {
		}
	</script>
</html>